<template>
  <div></div>
</template>

<script setup lang="ts">
  defineOptions({
    name: 'Redirect',
  })

  const router = useRouter()
  const route = useRoute()

  router.replace({ path: `/${route.params.path}`, query: route.query })
</script>
